﻿using LJLib.Net.SPI.Com;
using System;
using System.Collections.Generic;

namespace PhoneUI.Com
{
    public sealed class AddCusInterviewRequest : ILJTokenRequest<AddCusInterviewResponse>
    {
        public string token { get; set; }
        /// <summary>
        /// 客户ID
        /// </summary>
        public int cusid { get; set; }
        /// <summary>
        /// 业务员
        /// </summary>
        public string saler { get; set; }
        /// <summary>
        /// 费用
        /// </summary>
        public double amt { get; set; }
        /// <summary>
        /// 走访日期
        /// </summary>
        public DateTime interviewdate { get; set; }
        /// <summary>
        /// 联系人
        /// </summary>
        public string interviewrep { get; set; }
        /// <summary>
        /// 联系人电话
        /// </summary>
        public string tele { get; set; }
        /// <summary>
        /// 走访时长
        /// </summary>
        public double interviewtime { get; set; }
        /// <summary>
        /// 走访内容
        /// </summary>
        public string interviewcontent { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string dscrp { get; set; }
        /// <summary>
        /// 走访目的
        /// </summary>
        public string interviewway { get; set; }
        /// <summary>
        /// 走访结果
        /// </summary>
        public string interviewrslt { get; set; }
        /// <summary>
        /// 走访形式
        /// </summary>
        public string interviewform { get; set; }
        /// <summary>
        /// 客户评价
        /// </summary>
        public string custassess { get; set; }
        /// <summary>
        /// 客户意见
        /// </summary>
        public string custview { get; set; }
        /// <summary>
        /// 走访地点,手机端录入的时候自动生成
        /// </summary>
        public string interviewaddress { get; set; }
        /// <summary>
        /// 建立途径,由手机端录入的时候获取操作系统自动生成
        /// </summary>
        public string inputway { get; set; }
        /// <summary>
        /// 上传附件名称
        /// </summary>
        public List<string> filenames { get; set; }
        /// <summary>
        /// 上传附件内容
        /// </summary>
        public List<byte[]> filedatas { get; set; }

        public string GetApiName()
        {
            return "AddCusInterview";
        }
    }

    public sealed class AddCusInterviewResponse : LJResponse
    {
        /// <summary>
        /// 保存后的走访ID
        /// </summary>
        public int interviewid { get; set; }
    }
}